import React, { Component } from 'react'
import { browserHistory, Router } from 'react-router'
import { Provider } from 'react-redux'

class AppContainer extends Component {

    shouldComponentUpdate () {
        return false
    }

    render () {
        const { routes, store } = this.props

        return (
          <Provider store={store}>
            <div style={{ height: '100%' }}>
                {/*eslint react/no-children-prop: "off"*/}
              <Router history={browserHistory} children={routes} />
            </div>
          </Provider>
        )
    }
}

export default AppContainer
